package cn.hhu.dao;

import javax.annotation.Resource;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import cn.hhu.domain.Loginlog;

@Repository
public class LoginlogDao {

	@Resource
	private JdbcTemplate jdbcTemplate;
	public void insertLoginlog(Loginlog log) {
		String sql="insert into table_loginlog(userid,ip,logintime)values(?,?,?)";
		Object[] args={log.getUserid(),log.getIp(),log.getLogintime()};
		jdbcTemplate.update(sql,args);
	}
}
